Draft PointArray |
Menu location |
---|
Draft → PointArray |
Workbenches |
Draft, Arch |
Default shortcut |
None |
Introduced in version |
0.18 |
See also |
Draft Array, Draft PathArray |
Instrumentul PointArray plasează copii ale unei forme selectate de-a lungul diferitelor puncte selectate.
The base object can be a 2D object created with the Draft Workbench or Sketcher Workbench, but also a 3D object such as those created with the Part Workbench, PartDesign Workbench or BIM Workbench.
The point object can be any object with a shape and vertices (including a Std Part containing one or more of such objects), as well as a mesh and a point cloud. Duplicate points in the point object are filtered out.
Draft PointArray
See also: Property editor.
A Draft PointArray object is derived from a Part Feature object and inherits all its properties (with the exception of some View properties that are not inherited by Link arrays). The following properties are additional unless otherwise stated:
Link
The properties in this group are only available for Link arrays. See Std LinkMake for more information.
Float
)Vector
)VectorList
)BoolList
)PlacementList
)LinkList
)Bool
)LinkList
)LinkSubHidden
)Bool
)Objects
Link
The properties in this group, with the exception of the inherited property, are only available for Link arrays. See Std LinkMake for more information.
Enumeration
)FloatConstraint
)Bool
)FloatConstraint
)Bool
): this is an inherited property that appears in the Selection group for other arraysMaterial
)Base
The properties in this group, with the exception of the inherited property, are only available for Link arrays. See Std LinkMake for more information.
PersistentObject
)MaterialList
)ColorList
)BoolList
)PythonObject
): this is an inherited property.Display Options
The properties in this group are inherited properties. See Part Feature for more information.
Bool
): this property is not inherited by Link arrays.Enumeration
): for Link arrays it can be Link
or ChildView
. For other arrays it can be: Flat Lines
, Shaded
, Wireframe
or Points
Bool
)Bool
)Draft
Enumeration
): not used.Float
): not used.Object style
The properties in this group are not inherited by Link arrays.
Instrumentul PointArray poate fi utilizat în macros și de la consola Python utilizând următoarele funcții:
point_array = make_point_array(base_object, point_object, extra=None, use_link=True)
base
este forma de copiat și ptlst
este un obiect cu geometrie, legături sau componente care definesc poziția copiilor.Exempluː
import FreeCAD as App
import Draft
doc = App.newDocument()
polygon = Draft.make_polygon(3, radius=500.0)
p1 = Draft.make_point(App.Vector(1500, 0, 0))
p2 = Draft.make_point(App.Vector(2500, 0, 0))
p3 = Draft.make_point(App.Vector(2000, 1000, 0))
compound = doc.addObject("Part::Compound", "Compound")
compound.Links = [p1, p2, p3]
point_array = Draft.make_point_array(polygon, compound)
doc.recompute()